import {lazy} from "react"
const Login = lazy(()=>{return import("../pages/Login")})
const Home = lazy(()=>import("../pages/index/home"))
const Nav1 = lazy(()=>import("../pages/index/Nav1"))
const Nav2 = lazy(()=>import("../pages/index/Nav2"))
const Nav3 = lazy(()=>import("../pages/index/Nav3"))
const HomeRouter = [   // 二级路由
    {
        path:"/home/nav1",
        element:<Nav1></Nav1>
    },
    {
        path:"/home/nav2",
        element:<Nav2></Nav2>
    },
    {
        path:"/home/nav3",
        element:<Nav3></Nav3>
    },
]
const routerlist = [
    {
        path:"/login",
        element:<Login></Login>
    },
    {
        path:"/home",
        element:<Home></Home>,
        children:HomeRouter
    }
]
export default routerlist